package cn.geminis.crypto.csp.soft.empty;

import cn.geminis.crypto.csp.AbstractMac;
import cn.geminis.crypto.csp.parameter.InitMacCipherParameters;

/**
 * @author Allen
 */
public class EmptyHMac extends AbstractMac {

    @Override
    public void init(InitMacCipherParameters params) {
    }

    @Override
    public String getAlgorithmName() {
        return "EmptyHMac";
    }

    @Override
    public int getMacSize() {
        return 0;
    }

    @Override
    public void update(byte[] in, int inOff, int len) {
    }

    @Override
    public int doFinal(byte[] out, int outOff) {
        return 0;
    }

    @Override
    public void reset() {
    }

    @Override
    public void close() {
    }
}
